SOInetAtoN


C Specification

#include <dolphin/socket.h>
int SOInetAtoN ( const char* cp, SOInAddr* inp );

Description

SOInetAtoN() converts an Internet host address in the dotted decimal notation into binary address.

Arguments

cp dotted-decimal notation of an IPv4 address.
inp binary IPv4 address in network byte order.

Return Values

1 if cp is a valid IPv4 address notation (even if inp is NULL). 0 if cp is not a valid IPv4 address notation.

See Also

SOInetNtoA(), SOInetPtoN(), SOInAddr